package com.project.forlearningdemo.pojo.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;

@ApiModel("info 页类")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Info<T> {

    @ApiModelProperty("每一页的对象集合")
    @JsonProperty("list")
    private List<T> list;

    @ApiModelProperty("当前页数")
    @JsonProperty("pageNum")
    private int pageNum;

    @ApiModelProperty("前一页数")
    @JsonProperty("prePage")
    private int prePage;

    @ApiModelProperty("后一页数")
    @JsonProperty("nextPage")
    private int nextPage;

    @ApiModelProperty("总页数")
    @JsonProperty("pages")
    private int pages;

    @ApiModelProperty("总数")
    @JsonProperty("sum")
    private int sum;

}
